<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Docs For Class RunningAhead</title>
	<link rel="stylesheet" type="text/css" href="../media/style.css">
	<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
	<td class="header-top-left"><img src="../media/logo.png" border="0" alt="phpDocumentor " /></td>
    <td class="header-top-right">com-runningahead<br /><div class="header-top-right-subpackage"></div></td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td colspan="2" class="header-menu">
      
                        
                      		[ <a href="../classtrees_com-runningahead.html" class="menu">class tree: com-runningahead</a> ]
		[ <a href="../elementindex_com-runningahead.html" class="menu">index: com-runningahead</a> ]
            [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="195" class="menu">
		<div class="package-title">com-runningahead</div>
  <div class="package">
	<div id="todolist">
			<p><a href="../todolist.html">Todo List</a></p>
	</div>
	</div>
      <b>Packages:</b><br />
  <div class="package">
              <a href="../li_com-runningahead.html">com-runningahead</a><br />
      	</div>
      <br />
                        <b>Files:</b><br />
        <div class="package">
				<span style="padding-left: 1em;"><a href="../com-runningahead/_runningAhead.php.html">runningAhead.php</a></span><br />
	  </div>
            <br />
                  <b>Classes:</b><br />
        <div class="package">
		    		<a href="../com-runningahead/RunningAhead.html">RunningAhead</a>    	 <br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: RunningAhead</h1>
Source Location: /runningAhead.php<br /><br />

<h2 class="class-name">Class RunningAhead</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Class Overview</div>
	<div class="nav-bar">
					<span class="disabled">Class Overview</span>
						
													| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
								</div>
	<div class="info-box-body">
		<table width="100%" border="0">
		<tr><td valign="top" width="60%" class="class-overview">

        		<p align="center" class="short-description"><strong>runningAhead.php, RunningAhead.com API Wrapper
</strong></p>
<span class="description"><p>This is a class written to allow easy use of the  RunningAhead.com SOAP API</p></span>
		<p class="notes">
			Located in <a class="field" href="_runningAhead.php.html">/runningAhead.php</a> [<span class="field">line 16</span>]
		</p>

		
		<pre></pre>

		
				<strong>Author(s):</strong>
		<ul>
		  			 			 <li>Jon Gullidge &lt;<a href="mailto:jon@gullidge.org">jon@gullidge.org</a>&gt;</li>
			 		  			 		  			 		  			 		  			 		  		</ul>
		
		
<strong>Information Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
				<tr><td><strong>Version:</strong>&nbsp;&nbsp;</td><td>0.1.3</td></tr>
				<tr><td><strong>Todo:</strong>&nbsp;&nbsp;</td><td>fix non-wsdl mode</td></tr>
				<tr><td><strong>Todo:</strong>&nbsp;&nbsp;</td><td>Fix some 'hacks'</td></tr>
				<tr><td><strong>Todo:</strong>&nbsp;&nbsp;</td><td>Encapsulate saveWorkout data</td></tr>
	</table>
		</td>

		
				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p>
		<ul>
		  		  <li><a href="../com-runningahead/RunningAhead.html#method__construct">__construct</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodcreateIntervalSet">createIntervalSet</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodcreateSurfaceType">createSurfaceType</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodcreateUser">createUser</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodcreateWeatherType">createWeatherType</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetCourse">getCourse</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetEquipment">getEquipment</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetPreferences">getPreferences</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetTokenAuthUrl">getTokenAuthUrl</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetWeeklyStats">getWeeklyStats</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetWorkout">getWorkout</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodgetWorkoutData">getWorkoutData</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodimpersonateUser">impersonateUser</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodimportWorkouts">importWorkouts</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodlistCourses">listCourses</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodlistEquipment">listEquipment</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodlistEventTypes">listEventTypes</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodlistWorkouts">listWorkouts</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodsaveCourse">saveCourse</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodsaveEquipment">saveEquipment</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodsavePreferences">savePreferences</a></li>
		  		  <li><a href="../com-runningahead/RunningAhead.html#methodsaveWorkout">saveWorkout</a></li>
		  		</ul>
		</td>
		
		</tr></table>
		<div class="top">[ <a href="#top">Top</a> ]</div>
	</div>
</div>





	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
									    					| <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a>
		</div>
		<div class="info-box-body">
			<div class="method-summary">
				<table border="0" cellspacing="0" cellpadding="0" class="method-summary">
																																																																																																																																																																																																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">RunningAhead</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#__construct" title="details" class="method-name">__construct</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Class Constructor - Begins authorisation protocols</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">IntervalSet</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#createIntervalSet" title="details" class="method-name">createIntervalSet</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">createIntervalSet - creates a set of intervals.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Surface</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#createSurfaceType" title="details" class="method-name">createSurfaceType</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">createSurfaceType - Creates an surface object.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">int</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#createUser" title="details" class="method-name">createUser</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">createUser (Privileged Method) - Creates a new user account</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#createWeatherType" title="details" class="method-name">createWeatherType</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">createWeatherType - Creates a weather object  This function aims to reduce list of parameters in some function calls.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getCourse" title="details" class="method-name">getCourse</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getCourse - Gets information on a specified course</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getEquipment" title="details" class="method-name">getEquipment</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getEquipment - Gets information on specified equipment</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">String/Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getPreferences" title="details" class="method-name">getPreferences</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getPreferences - Gets user's preferences</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">String</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getTokenAuthUrl" title="details" class="method-name">getTokenAuthUrl</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getTokenAuthUrl (Privileged Method) - Gets an url that will login the user automatically to RA's web interface.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getWeeklyStats" title="details" class="method-name">getWeeklyStats</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getWeeklyStats - Gets weekly stats for specified date range</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getWorkout" title="details" class="method-name">getWorkout</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getWorkout - Gets information on a specified workout</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">String</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#getWorkoutData" title="details" class="method-name">getWorkoutData</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">getWorkoutData - Gets detailed information/measurements on a specified workout (Such as GPS data)</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">int</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#impersonateUser" title="details" class="method-name">impersonateUser</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">impersonateUser - Impersonates a user (Required to be called before most other functions)</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">String</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#importWorkouts" title="details" class="method-name">importWorkouts</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">importWorkouts - Imports workout from specified data</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#listCourses" title="details" class="method-name">listCourses</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">listCourses - Lists user's courses</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#listEquipment" title="details" class="method-name">listEquipment</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">listEquipment - Lists user's equipment</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#listEventTypes" title="details" class="method-name">listEventTypes</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">listEventTypes - Lists user's event types</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">Array</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#listWorkouts" title="details" class="method-name">listWorkouts</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">listWorkouts - Lists user's workouts</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">String</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#saveCourse" title="details" class="method-name">saveCourse</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">saveCourse - Saves a new course.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">String</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#saveEquipment" title="details" class="method-name">saveEquipment</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">saveEquipment - Save new equipment</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">int</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#savePreferences" title="details" class="method-name">savePreferences</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">savePreferences - Save user preferences.</td></tr>
				</div>
																<div class="method-definition">
											<tr><td class="method-definition"><span class="method-result">void</span>&nbsp;&nbsp;</td>
										<td class="method-definition"><a href="#saveWorkout" title="details" class="method-name">saveWorkout</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">saveWorkout - Saves a new workout.</td></tr>
				</div>
												</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>


	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
																			| <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span>
					</div>
		<div class="info-box-body">
			<a name='method_detail'></a>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">Constructor __construct</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 40]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>RunningAhead __construct(
String
$appKey, String
$appSecret, [int
$dev = 1], [int
$wsdl = 1]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Class Constructor - Begins authorisation protocols
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$appKey:&nbsp;</span></td>
				<td>
				<span class="var-description"> Application Key provided to access the API</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$appSecret:&nbsp;</span></td>
				<td>
				<span class="var-description"> Password provided to access the API</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$dev:&nbsp;</span></td>
				<td>
				<span class="var-description"> 1 for development mode, 0 for live mode (defaults to development mode)</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$wsdl:&nbsp;</span></td>
				<td>
				<span class="var-description"> 1 for WSDL mode, 0 for non-WSDL mode (currently forces WSDL mode)</span>			</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcreateIntervalSet" id="createIntervalSet"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">createIntervalSet</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 1465]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>IntervalSet createIntervalSet(

$name, int
$distance, String/int
$distanceUnit, int
$duration, int
$avgHR, int
$maxHR, String
$notes, int
$type&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>createIntervalSet - creates a set of intervals.
</strong></p>
<span class="description"><p>The first parameter specifies the interval name. All proceeding parameters are in blocks of 7 to specify details of each interval.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distance:&nbsp;</span></td>
				<td>
				<span class="var-description"> Interval distance.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distanceUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> Interval distance unit, e.g. kilometer or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$duration:&nbsp;</span></td>
				<td>
				<span class="var-description"> Interval duration.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$avgHR:&nbsp;</span></td>
				<td>
				<span class="var-description"> Average heart rate for interval.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$maxHR:&nbsp;</span></td>
				<td>
				<span class="var-description"> Max heart rate for interval.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$notes:&nbsp;</span></td>
				<td>
				<span class="var-description"> Interval notes</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$type:&nbsp;</span></td>
				<td>
				<span class="var-description"> Interval type, e.g. Recovery or 1</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$name:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcreateSurfaceType" id="createSurfaceType"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">createSurfaceType</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 1442]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Surface createSurfaceType(
[bool
$asphalt = false], [bool
$concrete = false], [bool
$grass = false], [bool
$trail = false], [bool
$track = false], [bool
$treadmill = false]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>createSurfaceType - Creates an surface object.
</strong></p>
<span class="description"><p>This function aims to reduce list of parameters in some function calls.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$asphalt:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course is asphalt or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$concrete:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course is concrete or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$grass:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course is grass or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$trail:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course is trail or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$track:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course is track or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$treadmill:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course is treadmill or not. Default value false.</span>			</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcreateUser" id="createUser"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">createUser</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 306]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>int createUser(
$name
$name, $email
$email, $password
$password, $externalID
$externalID&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>createUser (Privileged Method) - Creates a new user account
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">$name</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$name:&nbsp;</span></td>
				<td>
				<span class="var-description"> Username</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">$email</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$email:&nbsp;</span></td>
				<td>
				<span class="var-description"> User's email address</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">$password</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$password:&nbsp;</span></td>
				<td>
				<span class="var-description"> User's password</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">$externalID</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$externalID:&nbsp;</span></td>
				<td>
				<span class="var-description"> User's ID. This is the ID that you supply to uniquely identifies the user. (Typically the user's ID from your system)</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>0 if success, -1 if not successful</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodcreateWeatherType" id="createWeatherType"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">createWeatherType</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 1410]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void createWeatherType(
[bool
$clear = false], [bool
$partlyCloudy = false], [bool
$overcast = false], [bool
$rain = false], [bool
$snow = false], [bool
$windy = false], [bool
$humid = false]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>createWeatherType - Creates a weather object  This function aims to reduce list of parameters in some function calls.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$clear:&nbsp;</span></td>
				<td>
				<span class="var-description"> Clear or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$partlyCloudy:&nbsp;</span></td>
				<td>
				<span class="var-description"> Partly cloudy or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$overcast:&nbsp;</span></td>
				<td>
				<span class="var-description"> Overcast or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$rain:&nbsp;</span></td>
				<td>
				<span class="var-description"> Raining or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$snow:&nbsp;</span></td>
				<td>
				<span class="var-description"> Snowing or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$windy:&nbsp;</span></td>
				<td>
				<span class="var-description"> Windy or not. Default value false.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$humid:&nbsp;</span></td>
				<td>
				<span class="var-description"> Humid or not. Default value false.</span>			</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetCourse" id="getCourse"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getCourse</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 393]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array getCourse(
String
$courseID&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getCourse - Gets information on a specified course
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$courseID:&nbsp;</span></td>
				<td>
				<span class="var-description"> The ID of the course</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing matching courses, -1 if no matching courses were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetEquipment" id="getEquipment"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getEquipment</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 429]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array getEquipment(
String
$equipmentID&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getEquipment - Gets information on specified equipment
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$equipmentID:&nbsp;</span></td>
				<td>
				<span class="var-description"> The ID of the equipment</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing matching equipment, -1 if no matching courses were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetPreferences" id="getPreferences"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getPreferences</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 465]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>String/Array getPreferences(
[String
$preference = '']&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getPreferences - Gets user's preferences
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$preference:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Specify a single preference to return</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Returns a string containing the preference setting if $preference was specified and found. Else returns an array containing the user's preferences.</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetTokenAuthUrl" id="getTokenAuthUrl"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getTokenAuthUrl</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 350]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>String getTokenAuthUrl(
$email
$email, $password
$password, $externalID
$externalID&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getTokenAuthUrl (Privileged Method) - Gets an url that will login the user automatically to RA's web interface.
</strong></p>
<span class="description"><p>You must specify either user's email and password for RA OR their external ID.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">$email</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$email:&nbsp;</span></td>
				<td>
				<span class="var-description"> User's email address</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">$password</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$password:&nbsp;</span></td>
				<td>
				<span class="var-description"> User's password</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">$externalID</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$externalID:&nbsp;</span></td>
				<td>
				<span class="var-description"> User's ID. This is the ID that you supply to uniquely identifies the user. (Typically the user's ID from your system)</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Authentication url, -1 if no matching courses were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetWeeklyStats" id="getWeeklyStats"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getWeeklyStats</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 484]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array getWeeklyStats(
Date
$beginDate, [Date
$endDate = ''], [int
$activity = 0], [String
$firstDayOfWeek = 'Monday'], [bool
$fullWeek = True]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getWeeklyStats - Gets weekly stats for specified date range
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">Date</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$beginDate:&nbsp;</span></td>
				<td>
				<span class="var-description"> Start date of weekly stats. Most date formats are accepted</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Date</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$endDate:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] End date of weekly stats. Most date formats are accepted. Default value is current time &amp; date.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$activity:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Activity types to return. Default value is 0 (All activities).</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$firstDayOfWeek:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Specifie which day of the week is the 'first day'. Default value is Monday</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fullWeek:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] If $beginDate is not the first day of the week or $endDate is not the last day of the week, extend the dates to contain full week. Default value is True.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing matching workouts, -1 if no matching workouts were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetWorkout" id="getWorkout"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">getWorkout</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 535]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array getWorkout(
String
$workoutID&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getWorkout - Gets information on a specified workout
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$workoutID:&nbsp;</span></td>
				<td>
				<span class="var-description"> The ID of the workout</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing matching workout, -1 if no matching workout was found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodgetWorkoutData" id="getWorkoutData"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">getWorkoutData</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 573]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>String getWorkoutData(
String
$workoutID, [int
$type = 'Gpx'], [String
$encoding = 'UTF8']&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>getWorkoutData - Gets detailed information/measurements on a specified workout (Such as GPS data)
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$workoutID:&nbsp;</span></td>
				<td>
				<span class="var-description"> The ID of the workout</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$type:&nbsp;</span></td>
				<td>
				<span class="var-description"> File format of data, it must be set to 1</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$encoding:&nbsp;</span></td>
				<td>
				<span class="var-description"> The data's encoding method, please refer to API docs.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>matching workout in format specified, -1 if no matching workout was found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodimpersonateUser" id="impersonateUser"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">impersonateUser</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 1364]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>int impersonateUser(
String
$email, String
$password&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>impersonateUser - Impersonates a user (Required to be called before most other functions)
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$email:&nbsp;</span></td>
				<td>
				<span class="var-description"> Email address of user account</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$password:&nbsp;</span></td>
				<td>
				<span class="var-description"> Password of user account</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>0 if successful, -1 if failed</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodimportWorkouts" id="importWorkouts"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">importWorkouts</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 799]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>String importWorkouts(
String
$data, [String
$type = 'Gpx'], [String
$encoding = '0x01']&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>importWorkouts - Imports workout from specified data
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$data:&nbsp;</span></td>
				<td>
				<span class="var-description"> The contents of the workout data.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$type:&nbsp;</span></td>
				<td>
				<span class="var-description"> The data type.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$encoding:&nbsp;</span></td>
				<td>
				<span class="var-description"> The encoding type. Please refer to API docs.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>New workout ID, -1 if failed.</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodlistCourses" id="listCourses"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">listCourses</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 613]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array listCourses(
[String
$sortBy = 'ReferenceDate'], [int
$offset = 0], [int
$limit = 100]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>listCourses - Lists user's courses
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$sortBy:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Filter by which to sort results by, either 'ReferenceDate' or 'Alphabetical' (0 or 1 respectively), default value is 'ReferenceDate'</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$offset:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] The offset of which to start returning courses, default 0</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$limit:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Limit of number of courses to return, max 100, default 100</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing matching courses, -1 if no matching courses were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodlistEquipment" id="listEquipment"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">listEquipment</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 664]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array listEquipment(
[bool
$showRetired = true], [int
$eventTypeID = 0], [int
$offset = 0], [int
$limit = 0]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>listEquipment - Lists user's equipment
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$eventTypeID:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Only return equipment with specified event ID</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$offset:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] The offset of which to start returning equipment, default 0</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$limit:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Limit of number of equipment to return, max 100, default 100</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">bool</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$showRetired:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] $showRetired Whether to show 'retired' equipment or not, default value is True</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing matching equipment, -1 if no matching equipment was found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodlistEventTypes" id="listEventTypes"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">listEventTypes</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 708]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array listEventTypes(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>listEventTypes - Lists user's event types
</strong></p>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing event types, -1 if no event types were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodlistWorkouts" id="listWorkouts"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">listWorkouts</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 746]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>Array listWorkouts(
String/Array
$fields, [int
$offset = 0], [int
$limit = 0]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>listWorkouts - Lists user's workouts
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String/Array</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fields:&nbsp;</span></td>
				<td>
				<span class="var-description"> A string or array of strings containing the name of the data fields you wish to be returned. Please refer to the API docs for a list of data fields. (An array is only required for more than one field)</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$offset:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] The offset of which to start returning equipment, default 0</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$limit:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Limit of number of workouts to return, max 100, default 100</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Array containing workouts, -1 if no matching workouts were found</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsaveCourse" id="saveCourse"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">saveCourse</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 841]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>String saveCourse(
int
$distance, String/int
$distanceUnit, String
$name, [String
$notes = ''], [Surface
$surface = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>saveCourse - Saves a new course.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distance:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course distance.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distanceUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course distance unit, e.g. kilometer.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$name:&nbsp;</span></td>
				<td>
				<span class="var-description"> Course name.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$notes:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Course notes.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Surface</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$surface:&nbsp;</span></td>
				<td>
				<span class="var-description"> surface of course. Use <a href="../com-runningahead/RunningAhead.html#methodcreateSurfaceType">createSurfaceType()</a>.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Saved course ID, -1 if failed.</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsaveEquipment" id="saveEquipment"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">saveEquipment</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 930]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>String saveEquipment(
String
$equipmentID, String
$brandName, int
$brandID, String
$modelName, String
$modelID, String
$serial, String
$eventTypeID, int
$price, int
$initialDistance, 
$distance, Date
$purchaseDate, [Date
$retireDate = ''], [String
$notes = '']&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>saveEquipment - Save new equipment
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$equipmentID:&nbsp;</span></td>
				<td>
				<span class="var-description"> Equipment ID.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$brandName:&nbsp;</span></td>
				<td>
				<span class="var-description"> Equipment brand name.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$brandID:&nbsp;</span></td>
				<td>
				<span class="var-description"> Equipment brand ID.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$modelName:&nbsp;</span></td>
				<td>
				<span class="var-description"> Equipment model name.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$modelID:&nbsp;</span></td>
				<td>
				<span class="var-description"> Equipment model ID.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$serial:&nbsp;</span></td>
				<td>
				<span class="var-description"> Equipment serial number.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$eventTypeID:&nbsp;</span></td>
				<td>
				<span class="var-description"> ID of event types this equipment will be used for, e.g. 10 for running. Please see API docs for more values.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$price:&nbsp;</span></td>
				<td>
				<span class="var-description"> Purchase price of equipment.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$initialDistance:&nbsp;</span></td>
				<td>
				<span class="var-description"> Total distance equipment has done.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Date</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$purchaseDate:&nbsp;</span></td>
				<td>
				<span class="var-description"> Date of equipment purchase.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Date</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$retireDate:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Date of retirement for equipment. If left unset, equipment is made active (in-use).</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$notes:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Any extra notes about equipment.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distance:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>Saved equipment ID, -1 if failed.</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsavePreferences" id="savePreferences"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">savePreferences</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 1014]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>int savePreferences(
[String/int
$distanceUnit = ''], [String/int
$weightUnit = ''], [String/int
$temperatureUnit = ''], [String/int
$firstDayOfWeek = '']&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>savePreferences - Save user preferences.
</strong></p>
<span class="description"><p>You need only set the prefences you wish to change. Please see API docs for setting values.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distanceUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> user's default distance unit, e.g. kilometer or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$weightUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> user's default weight unit, e.g. Pounds or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$temperatureUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> user's default temperature unit, e.g. Celsius or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$firstDayOfWeek:&nbsp;</span></td>
				<td>
				<span class="var-description"> user's default first day of the week, e.g. Monday or 1.</span>			</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>0 if successful, -1 if failed</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsaveWorkout" id="saveWorkout"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">saveWorkout</span>&nbsp;&nbsp;<span class="smalllinenumber">[line 1193]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>void saveWorkout(
int
$workoutID, Date
$date, Time
$timeOfDay, String
$eventType, int
$eventTypeID, String
$eventSubType, int
$eventSubTypeID, String
$courseName, int
$courseID, int
$distance, String/int
$distanceUnit, int
$duration, String
$equipmentName, int
$equipmentID, int
$weight, String/int
$weightUnit, int
$restHR, int
$avgHR, int
$maxHR, int
$temperature, String/int
$temperatureUnit, String
$notes, Weather
$weatherConditions, int
$fieldPlacement, int
$fieldSize, int
$groupMinAge, int
$groupMaxAge, int
$groupPlacement, int
$groupSize, int
$genderPlacement, int
$genderSize, int
$quality, int
$effort, Interval
$intervalSet&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>saveWorkout - Saves a new workout.
</strong></p>
<span class="description"><p>You must specify either a distance or a duration. You can specify both, but you do not have to.</p></span>
			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$workoutID:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] ID of workout you are modifying. Leave blank to create a new workout.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Date</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$date:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Date of workout. Default value is today's date</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Time</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$timeOfDay:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Time of workout.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$eventType:&nbsp;</span></td>
				<td>
				<span class="var-description"> Event type, e.g. Run</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$eventTypeID:&nbsp;</span></td>
				<td>
				<span class="var-description"> Event type ID, e.g. 10 for run</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$eventSubType:&nbsp;</span></td>
				<td>
				<span class="var-description"> Event sub type e.g. Tempo</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$eventSubTypeID:&nbsp;</span></td>
				<td>
				<span class="var-description"> Event sub type ID e.g. 1 for default</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$courseName:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Name of course used for workout.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$courseID:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] ID of course used for workout.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distance:&nbsp;</span></td>
				<td>
				<span class="var-description"> Workout distance.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$distanceUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> Workout distance unit of measurement, e.g. Kilometer or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$duration:&nbsp;</span></td>
				<td>
				<span class="var-description"> Workout duration.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$equipmentName:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Name of equipment used for workout.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$equipmentID:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] ID of equipment used for workout.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$weight:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] User's weight.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$weightUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Unit of weight measurement, e.g. Pound or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$restHR:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout resting heart rate.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$avgHR:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout average heart rate.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$maxHR:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout maximum heart rate.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$temperature:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout temperature.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String/int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$temperatureUnit:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Unit of temperature measurement, e.g. Celcius or 0.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">String</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$notes:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout notes.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Weather</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$weatherConditions:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout weather conditions. @see createWeatherType()</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldPlacement:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] field placement.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$fieldSize:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Field Size.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$groupMinAge:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Minimum group age.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$groupMaxAge:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Maximum group age.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$groupPlacement:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Group placement.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$groupSize:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Group size.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$genderPlacement:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Gender placement.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$genderSize:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Gender size.</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$quality:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout quality rating between 1 and 10 (inclusive).</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">int</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$effort:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Workout effort rating between 1 and 10 (inclusive).</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">Interval</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$intervalSet:&nbsp;</span></td>
				<td>
				<span class="var-description"> [Optional] Set of workout intervals. Use <a href="../com-runningahead/RunningAhead.html#methodcreateIntervalSet">createIntervalSet()</a>.</span>			</td></tr>
				</table>

	<br />
	

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>


        <div class="credit">
		    <hr class="separator" />
		    Documentation generated on Thu, 07 Jul 2011 22:02:58 +0300 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>